<nav order="ASC"></nav>
<div class="header-wrapper opacity">
	<div class="header">
		<!-- Begin Logo -->
		<div class="logo">
		    <a href="/">
				<img src="__PUBLIC__/images/logo.png" alt="" />
			</a>
	    </div>
		<!-- End Logo -->
		<!-- Begin Menu -->
		<div id="menu-wrapper">
			<div id="menu" class="menu">
				<ul id="tiny">
					<li><a href="/">首页</a></li>
					<foreach name="cate" item='v'>
						<li id="{$v.id}" ><a href="{:U(GROUP_NAME.'/List/index',array('id'=>$v['id']))}">{$v.name}</a>
							<if condition="$v['child']">
								<ul>
								<foreach name="v['child']" item="value">
									<li id="{$value.id}"><a href="{:U(GROUP_NAME.'/List/index',array('id'=>$value['id']))}">{$value.name}</a></li>
								</foreach>
								</ul>
							</if>
						</li>
					</foreach>
				</ul>
			</div>
		</div>
		<div class="clear"></div>
		<!-- End Menu -->
	</div>
</div>
<script>
	$('#{$_GET["id"]}').attr('class','active');
	$('#{$_GET["id"]}').parent().parent('li').attr('class','active');
	if("__URL__"=="/index.php/Index") $('ul li:first').attr('class','active');
</script>
